package com.bw.module_main.http

import com.bw.lib_net.NetModule
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

/**
 * @author ytx
 * @date 2025-09-18 14:06
 * @description
 */
@Module
@InstallIn(SingletonComponent::class)
class ApiModule {

    @Provides
    @Singleton
    fun getMainApi(@NetModule.CommonRetrofit retrofit: Retrofit):MainApi{
        return retrofit.create(MainApi::class.java)
    }
}